package com.bean;

import java.sql.Timestamp;
import java.util.Objects;

/**
 * @Author: 柏竹
 * @Description: 快递实体类
 * @Date_Created_in: 2021-05-20 18:26
 * @Modified_By: Sans
 * @Project: 快递e栈
 */
public class Express {
    private int id;
    private String number;
    private String username;
    private String userphone;
    private String company;
    private String code;
    private Timestamp intime;
    private Timestamp outtime;
    private int status;
    private String sysPhone;
    private String departure;
    private String destination;
    private String inuserip;
    
    public Express() {
    }
    
    public Express(String number , String username , String userphone , String company) {
        this.number = number;
        this.username = username;
        this.userphone = userphone;
        this.company = company;
    }
    
    public Express(String number , String username , String userphone , String company , String sysPhone) {
        this.number = number;
        this.username = username;
        this.userphone = userphone;
        this.company = company;
        this.sysPhone = sysPhone;
    }
    
    public Express(String number , String username , String userphone , String company , String sysPhone , String code) {
        this.number = number;
        this.username = username;
        this.userphone = userphone;
        this.company = company;
        this.sysPhone = sysPhone;
        this.code = code;
    }
    
    public Express(int id , String number , String username , String userphone , String company , String code , Timestamp intime , Timestamp outtime , int status , String sysPhone , String departure , String destination , String inuserip) {
        this.id = id;
        this.number = number;
        this.username = username;
        this.userphone = userphone;
        this.company = company;
        this.code = code;
        this.intime = intime;
        this.outtime = outtime;
        this.status = status;
        this.sysPhone = sysPhone;
        this.departure = departure;
        this.destination = destination;
        this.inuserip = inuserip;
    }
    
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Express express = (Express) o;
        return id == express.id && status == express.status && Objects.equals(number , express.number) && Objects.equals(username , express.username) && Objects.equals(userphone , express.userphone) && Objects.equals(company , express.company) && Objects.equals(code , express.code) && Objects.equals(intime , express.intime) && Objects.equals(outtime , express.outtime) && Objects.equals(sysPhone , express.sysPhone) && Objects.equals(departure , express.departure) && Objects.equals(destination , express.destination) && Objects.equals(inuserip , express.inuserip);
    }
    
    @Override
    public int hashCode() {
        return Objects.hash(id , number , username , userphone , company , code , intime , outtime , status , sysPhone , departure , destination , inuserip);
    }
    
    public String getInuserip() {
        return inuserip;
    }
    
    public void setInuserip(String inuserip) {
        this.inuserip = inuserip;
    }
    
    public String getDeparture() {
        return departure;
    }
    
    public void setDeparture(String departure) {
        this.departure = departure;
    }
    
    public String getDestination() {
        return destination;
    }
    
    public void setDestination(String destination) {
        this.destination = destination;
    }
    
    public int getId() {
        return id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    
    public String getNumber() {
        return number;
    }
    
    public void setNumber(String number) {
        this.number = number;
    }
    
    public String getUsername() {
        return username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }
    
    public String getUserphone() {
        return userphone;
    }
    
    public void setUserphone(String userphone) {
        this.userphone = userphone;
    }
    
    public String getCompany() {
        return company;
    }
    
    public void setCompany(String company) {
        this.company = company;
    }
    
    public String getCode() {
        return code;
    }
    
    public void setCode(String code) {
        this.code = code;
    }
    
    public Timestamp getIntime() {
        return intime;
    }
    
    public void setIntime(Timestamp intime) {
        this.intime = intime;
    }
    
    public Timestamp getOuttime() {
        return outtime;
    }
    
    public void setOuttime(Timestamp outtime) {
        this.outtime = outtime;
    }
    
    public int getStatus() {
        return status;
    }
    
    public void setStatus(int status) {
        this.status = status;
    }
    
    public String getSysPhone() {
        return sysPhone;
    }
    
    public void setSysPhone(String sysPhone) {
        this.sysPhone = sysPhone;
    }
    
    @Override
    public String toString() {
        return "Express{" +
                "id=" + id +
                ", number='" + number + '\'' +
                ", username='" + username + '\'' +
                ", userphone='" + userphone + '\'' +
                ", company='" + company + '\'' +
                ", code='" + code + '\'' +
                ", intime=" + intime +
                ", outtime=" + outtime +
                ", status=" + status +
                ", sysPhone='" + sysPhone + '\'' +
                '}';
    }
}
